package panel.newFunctionPreview
{
	import flash.display.Shape;
	import flash.display.Sprite;
	
	public class SmallPoint extends Sprite
	{
		private var po:Shape;
		
		public function SmallPoint(radius:int = 0)
		{
			po = new Shape();
			po.graphics.lineStyle(2,0x000000,1);
			po.graphics.beginFill(0xFFFF00,1);
			po.graphics.drawCircle(0,0,radius);
			po.graphics.endFill();
			
			this.addChild(po);
			
			init();
		}
		
		public function init():void
		{
			po.alpha = 0.5;
		}
		
		public function set state(choosen:Boolean):void
		{
			if(choosen == true){
				po.alpha = 1;
			}else{
				po.alpha = .5;
			}
		}
	}
}